package zsz;

import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;

public class Test {

    public static void main(String[] args) {

        TimeStamped t = new TimeStamped(new Basic());
        TimeStamped t2 = new TimeStamped(new Number(new Basic()));

        Number n = new Number(new Basic());
        Number n2 = new Number(new TimeStamped(new Basic()));


        Integer[] k = {1,2,3,4,5,6};
        List<Integer> list = new ArrayList<>(Arrays.asList(k));
        for (int i = list.size() - 1; i >= 0; i--) {
            if (list.get(i)==3) {
                list.remove(i);
            }

        }
        System.out.println(list);
    }
}
